﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎登录后台管理系统</title>
<link rel="stylesheet" type="text/css" href="themes/default/easyui.css"/>   
<link rel="stylesheet" type="text/css" href="themes/icon.css"/> 
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/jquery.js"></script>
<script src="js/cloud.js" type="text/javascript"></script>
  <!-- 引入JS文件 -->
<script type="text/javascript" src="js/jquery.min.js"></script>   
<script type="text/javascript" src="js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="js/easyui-lang-zh_CN.js"></script>

<script language="javascript">
	$(function(){
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
	$(window).resize(function(){  
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
    })  
    
    $("#islogin").click(function(){
		var admin = $("#admin").val();
		var password =$("#password").val();
		if(admin==""&&password==""){
			$.messager.alert('我的消息','请输入帐号密码！','error');
			return false;
		}
		$.ajax({
			url : 'isLogin.action',
			type : 'POST', // GET
			async : true, // 或false,是否异步
			data : {
			'admin' : admin,
			'password' : password
			},
			timeout : 5000, // 超时时间
			dataType : 'json', // 返回的数据格式：json/xml ml/script/jsonp/text
			success : function(data) {
			if(data=="0"||data==0){
				$.messager.alert('我的消息','你输入的帐号密码错误，请重新输入！','error');
			}else{
				location.href="http://localhost:8080/qing/issucee.action?userid="+data;
				}
			},
			error : function(xhr, textStatus) {
			alert('错误' + textStatus);
			},
			});	
	});
	
});  
</script> 

</head>

<body style="background-color:#1c77ac; background-repeat:no-repeat; background-position:center top; overflow:hidden;">



    <div id="mainBody">
      <div id="cloud1" class="cloud"></div>
      <div id="cloud2" class="cloud"></div>
    </div>  


<div class="logintop">    
    <span>欢迎登录后台管理界面平台</span>    
    <ul>
    <li><a href="#">回首页</a></li>
    <li><a href="#">帮助</a></li>
    <li><a href="#">关于</a></li>
    </ul>    
    </div>
    
    <div class="loginbody">
    
    <span class="systemlogo"></span> 
       
    <div class="loginbox">
    
    <ul>
    <li><input id="admin" type="text" class="loginuser" /></li>
    <li><input id="password" type="text" class="loginpwd" /></li>
    <li><input id="islogin" type="button" class="loginbtn" value="登录"  />
    <label><input name="" type="checkbox" value="" checked="checked" />记住密码</label></li>
    </ul>
    
    
    </div>
    
    </div>
    
    
    
    <div class="loginbm">版权所有  2016-2020  <a href="#">梧州学院软件开发中心</a> </div>
	
    
</body>

</html>
